package com.mask.service.impl;

import com.mask.dubbo.service.ProductDubboService;
import com.mask.mapper.ProductMapper;
import com.mask.pojo.Product;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author hx
 * @since 2021/11/22 6:51 下午
 */

@Service
public class ProductServiceImpl implements ProductDubboService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public int insertProduct(Product product) {
        return productMapper.insertProduct(product);
    }
}
